package com.customer.crm.product.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.type.Alias;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_crm_product")
@Alias("productPojo")
public class ProductPojo {
    @TableId(value = "id")
    private Integer id;
    @TableField("category_id")
    private Integer categoryId;
    @TableField("name")
    private String name;
    @TableField("creator_user_id")
    private String creatorUserId;
    @TableField("development_time")
    private String developmentTeam;
    @TableField("link")
    private String link;
    @TableField("description")
    private String description;
    @TableField("cost_price")
    private Float costPrice;
    @TableField("suggested_price")
    private Float suggestedPrice;
    @TableField("development_time")
    private long developmentTime;
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;
}
